package com.suse.ecommerce.pojo;

import java.io.Serializable;

public class User implements Serializable {
    private Integer userId;

    private String name;

    private String nick;

    private Integer age;

    private String sex;

    private String phone;

    private String password;

    private String photographUrl;

    private static final long serialVersionUID = 1L;

    public User(Integer userId, String name, String nick, Integer age, String sex, String phone, String password, String photographUrl) {
        this.userId = userId;
        this.name = name;
        this.nick = nick;
        this.age = age;
        this.sex = sex;
        this.phone = phone;
        this.password = password;
        this.photographUrl = photographUrl;
    }

    public User() {
        super();
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getNick() {
        return nick;
    }

    public void setNick(String nick) {
        this.nick = nick == null ? null : nick.trim();
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex == null ? null : sex.trim();
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone == null ? null : phone.trim();
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    public String getPhotographUrl() {
        return photographUrl;
    }

    public void setPhotographUrl(String photographUrl) {
        this.photographUrl = photographUrl == null ? null : photographUrl.trim();
    }
}